<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Head -->
<head>
    <meta charset="utf-8"/>
    <title>${session.SOFT_NAME }_智能办公系统</title>
    <meta name="description" content="Dashboard"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <%include("/app/resapi/style.html"){}%>
    <link rel="stylesheet" href="/module/zTree_v3/css/bootstrapStyle/bootstrapStyle.css" type="text/css">
    <link rel="stylesheet" type="text/css" href="/module/jeDate/jedate.css"/>
    <style type="text/css">
        .table > tbody > tr > td {
            vertical-align: middle;
        }
    </style>
</head>
<body style="overflow-y: auto;">
<div class="page-body" style="padding: 4px 0px 0px 0px">
    <div class="main-container container-fluid">
        <div class="page-container">
            <div class="col-md-12 col-sm-12 col-xs-12" style="padding: 0px">
                <div class="tabbable">
                    <ul class="nav nav-tabs tabs-flat" id="myTab11" style="background-image: url('/gobal/img/tb_header.png'); background-size: 34px 60px;">
                        <li class="active"><a href="/app/core/partyunion/setorg" aria-expanded="true">工会信息</a></li>
                        <li class=""><a href="/app/core/partyunion/setorg?view=info" aria-expanded="false">届次信息</a></li>
                        <li class=""><a href="/app/core/partyunion/setorg?view=list" aria-expanded="false">换届记录</a></li>
                    </ul>
                    <div class="tab-content tabs-flat">
                        <div class="buttons-preview" style="text-align: right">
                            <a class="btn btn-purple js-setcomm" href="javascript:void(0);"><i class="glyphicon glyphicon-retweet"></i> 换届</a>
                            <a class="btn btn-success js-appointment" href="javascript:void(0);"><i class="glyphicon glyphicon-user"></i> 任命</a>
                            <a class="btn btn-info js-appointment" href="javascript:void(0);"><i class="fa fa-plus"></i> 增补</a>
                            <a class="btn btn-danger js-appointment" href="javascript:void(0);"><i class="fa fa-times"></i> 卸职</a>
                        </div>
                        <div class="row">
                            <div class="col-md-offset-3 col-md-6 col-sm-6 col-xs-12" style="padding: 0px">
                                <div class="well well-sm">
                                    <div style="text-align: center">
                                        <span style="text-align: center; font-size: 24px; font-weight: 800">第<span style="color: firebrick;" id="spanDeadLine"></span>届工会成员</span>
                                        <input type="hidden" id="unionOrgId" name="unionOrgId">
                                    </div>
                                    <div style="padding: 20px;">
                                        <div style="margin-bottom: 10px;">
                                            <span style="font-size: 20px; font-weight: 600">主&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;席：</span>
                                            <span id="spanChairmanFir" style="font-size: 18px; font-weight: 600;margin-left: 10px"></span>
                                        </div>
                                        <div style="margin-bottom: 10px">
                                            <span style="font-size: 20px; font-weight: 600">副&nbsp;主&nbsp;席：</span>
                                            <span id="spanChairmanSec" style="font-size: 18px; font-weight: 600;margin-left: 10px"></span>
                                        </div>
                                        <div style="margin-bottom: 10px">
                                            <span style="font-size: 20px; font-weight: 600">工会成员：</span>
                                            <span id="spanMemberIds" style="font-size: 18px; font-weight: 600;margin-left: 10px"></span>
                                        </div>
                                        <div style="margin-bottom: 10px">
                                            <span style="font-size: 20px; font-weight: 600">届&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;期：</span>
                                            <span id="spanBeinTime" style="font-size: 18px; font-weight: 600;margin-left: 10px">
												</span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="modal fade bs-example-modal-lg" id="setcommmodal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" style="display: none;">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title" id="myLargeModalLabel">工会换届</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-bordered" id="form1">
                    <table class="table table-hover table-striped table-bordered">
                        <tr>
                            <td width="20%">届次：</td>
                            <td width="30%"><input placeholder="届次" type="text" name="deadline" id="deadline" class="form-control" maxlength="50"></td>
                            <td width="20%">产生方式：</td>
                            <td width="30%">
                                <select name="createType" id="createType" class="form-control">
                                    <option value="1">差额</option>
                                    <option value="2">等额</option>
                                    <option value="3">其他</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td width="20%">届始日期：</td>
                            <td width="30%"><input placeholder="届始日期" type="text" name="beginTime" id="beginTime" class="form-control" maxlength="50" readonly="readonly"></td>
                            <td width="20%">届满日期：</td>
                            <td width="30%"><input placeholder="届满日期" type="text" name="endTime" id="endTime" class="form-control" maxlength="20" readonly="readonly"></td>
                        </tr>
                        <tr>
                            <td width="20%">主席：</td>
                            <td width="30%">
                                <input type="text" id="chairmanFir" name="chairmanFir" readonly="readonly" class="form-control" placeholder="主席" opt-id="chairmanFir" onclick="selectUser(this,'false');">
                            </td>
                            <td width="20%">副主席：</td>
                            <td width="30%">
                                <input placeholder="副主席" type="text" name="chairmanSec" id="chairmanSec" class="form-control" readonly="readonly" opt-id="chairmanSec" onclick="selectUser(this,'true');">
                            </td>
                        </tr>
                        <tr>
                            <td width="20%">工会成员：</td>
                            <td colspan="2">
                                <textarea placeholder="委员" rows="5" cols="" id="memberIds" name="memberIds" readonly="readonly" class="form-control"></textarea>
                            </td>
                            <td width="20%">
                                <a style="cursor: pointer;" opt-id="memberIds" onclick="selectUser(this,'true');">${i18n('system.select')}</a>
                                <a style="cursor: pointer;" onclick="clearSelect('memberIds')">${i18n('system.clear')}</a>
                            </td>
                        </tr>
                        <tr>
                            <td width="20%">联系人：</td>
                            <td width="30%"><input placeholder="联系人" type="text" name="linkMan" id="linkMan" class="form-control" readonly="readonly" opt-id="linkMan" onclick="selectUser(this,'false');"></td>
                            <td width="20%">联系电话：</td>
                            <td width="30%"><input placeholder="联系电话" type="text" name="linkTel" id="linkTel" class="form-control" maxlength="50"></td>
                        </tr>
                        <tr>
                            <td colspan="4">换届摘要</td>
                        </tr>
                        <tr>
                            <td colspan="4">
                                <div id="remark" name="remark"></div>
                            </td>
                        </tr>
                        <tr>
                            <td width="20%">相关文件：</td>
                            <td width="80%" colspan="3">
                                <div id="show_attach"></div>
                                <a class="addfile" href="javascript:void(0)">${i18n('fileupload')} <input data_value="" type="file" onchange="fileUpLoad('party','attach');" hidefocus="true" maxlength="1"
                                                                                                          id="attach" name="attach" class="addfile" multiple="multiple"></a> <a class="addfile" style="width: 200px;" href="#" op_id="attach" onclick="selectattach(this,'true')">${i18n('system.netFileSelect')}</a>
                            </td>
                        </tr>
                    </table>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-warning" data-dismiss="modal">${i18n('cancel')}</button>
                <button type="button" class="btn btn-primary js-setcommmodal">${i18n('save')}</button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>

<div class="modal fade bs-example-modal-lg" id="setappointment" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel2" aria-hidden="true" style="display: none;">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title" id="myLargeModalLabel2">组织任命/增补/卸职</h4>
            </div>
            <div class="modal-body">
                <form class="form-horizontal form-bordered" role="form" id="form2">
                    <table class="table table-hover table-striped table-bordered">
                        <tr>
                            <td width="20%">主席：</td>
                            <td width="30%"><input placeholder="主席" type="text" name="chairmanFir1" id="chairmanFir1" class="form-control" maxlength="50" readonly="readonly" opt-id="chairmanFir1"
                                                   onclick="selectUser(this,'false');"></td>
                            <td width="20%">副主席：</td>
                            <td width="30%"><input placeholder="副主席" type="text" name="chairmanSec1" id="chairmanSec1" class="form-control" maxlength="20" readonly="readonly" opt-id="chairmanSec1"
                                                   onclick="selectUser(this,'true');"></td>
                        </tr>
                        <tr>
                            <td width="20%">工会成员：</td>
                            <td colspan="2">
                                <textarea placeholder="工会成员" rows="5" cols="" id="memberIds1" name="memberIds1" readonly="readonly" class="form-control"></textarea>
                            </td>
                            <td width="20%">
                                <a style="cursor: pointer;" opt-id="memberIds1" onclick="selectUser(this,'true');">${i18n('system.select')}</a>
                                <a style="cursor: pointer;" onclick="clearSelect('memberIds1')">${i18n('system.clear')}</a>
                            </td>
                        </tr>
                    </table>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-warning" data-dismiss="modal">${i18n('cancel')}</button>
                <button type="button" class="btn btn-primary js-appointmentmodal">${i18n('save')}</button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
<div id="orgselectdiv"></div>
</body>
<%include("/app/resapi/sysjs.html"){}%>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.core.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.excheck.js"></script>
<script type="text/javascript" src="/module/zTree_v3/js/jquery.ztree.exedit.js"></script>
<script type="text/javascript" src="/assets/js/editors/summernote/summernote.js"></script>
<script type="text/javascript" src="/module/fileupload/ajaxfileupload.js"></script>
<script type="text/javascript" src="/module/fileupload/fileupload.js"></script>
<script type="text/javascript" src="/module/fileupload/attachselect.js"></script>
<script type="text/javascript" src="/module/jeDate/jeDate.js"></script>
<script type="text/javascript" src="/module/orgselect/orgselect.js"></script>
<script type="text/javascript" src="/gobal/js/page/partyunion/org/setorg.js"></script>
</body>
</html>
